/*
 * VolumeUnit.h
 *
 *  Created on: Sep 14, 2011
 *      Author: topcoder
 */

#ifndef VOLUMEUNIT_H_
#define VOLUMEUNIT_H_
#include "Unit.h"
class VolumeUnit : public Unit
{
public:

	virtual int getFactor() const;
	virtual string formatToString(int amount);
    virtual string formatToStringInBaseUnit(int amount);
	static VolumeUnit& OZ();
	static VolumeUnit& TSP();
	static VolumeUnit& TBSP();
private:
	VolumeUnit(int factor);
	int factor;
};
#define Oz VolumeUnit::OZ()
#define Tsp VolumeUnit::TSP()
#define Tbsp VolumeUnit::TBSP()
#endif /* VOLUMEUNIT_H_ */ 
